P1: Updating the Document Site
The document site is maintained via GitHUB.
https://github.com/ThoughtLabs-NZ/process-documents.git
Changes made either to the Repo, or by pushing a new commit will automatically update CloudFlare pages to build and serve a new site update.
The current Pages URL is:
https://process-documents.pages.dev/
Process for sushing the site:
- Clone a local copy of the site from the repo above:
git clone https://github.com/ThoughtLabs-NZ/process-documents.git website
- The change into the website directory
- Building the site requires the necessary NPM modules to be installed:
bash
cd website
npm install
- This will then installed the required node modules.
- Once installed, you can build and serve the site using:
npm run build
and then...
npm run serve
- At anytime you can service the site using:
npm start
- The site will be available on http://localhost:3000
- All changes to the markdown files can be made using a Markdown editor
- For the purposes of simplicity - Obsidian can be used to edit and maintain these files.
- Changes to the local site can be uploaded (pushed) using a commit:
git add .
git commit -m "Updated Visitor Management"
git push -u origin main
- These changes will then be added as a new commit, and CloudFlare will rebuild the site.